<?php
require_once ('/home/n02559308/WWW/Exam/inc/functions.php');

class Users
{
	static function GetAll()
	{
		$conn = GetConnection();
		return $conn->query('SELECT * FROM Users');
	}
	static function Blank()
	{
		return array('FristName'=>null,'LastName'=>null,'created_at'=>null,'updated_at'=>null,'Keyword_id'=>null,'id'=>null,);
	}
	static function Get($id)
	{
		$conn = GetConnection();
		$results = $conn->query("SELECT * FROM Users WHERE id=$id");
		$row = $results->fetch_assoc();
		$conn->close();
		return $row;
	}
}